From 8913a64f2f24dbed3f26738b3094906ffad81276 Mon Sep 17 00:00:00 2001 From: robertl Date: Sat, 12 Jul 2003 04:46:35 +0000 Subject: [PATCH] Alan Acurry reports that Mapsned hoses if you edit a file with a comment that's > 30 chars, so we truncate them here. --- mapsend.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mapsend.c b/mapsend.c index 4ea1553e3..f0dba1a56 100644 --- a/mapsend.c +++ b/mapsend.c @@ -411,6 +411,8 @@ mapsend_waypt_pr(const waypoint *waypointp) c = strlen(waypointp->description); else c = 0; + + if (c > 30) c = 30; fwrite(&c, 1, 1, mapsend_file_out); fwrite(waypointp->description, c, 1, mapsend_file_out); -- 2.30.2